<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Pub:head" />
</head>
<body>
<div class="box1">
        <fieldset style="border-color:#999999;">
        <legend>业务列表</legend>
        <div class="box2" panelTitle="功能面板" id="searchPanel">
            <form action="__URL__/index" method="post">
                <table>
                    <tr>
                        <td>公司名：</td>
                        <td><input name="sousuo" value="" type="text"/></td>
                        <td><span class="icon_find"><input type="submit" value="查询"></span></td>
                        <td><a href="#">本月业务</a></td>
                        <td><a href="#">所有业务</a></td>
                    </tr>
                </table>
            </form>
        </div>

        <table class="tableStyle">
            <tr>
                <th> </th>
                <th>项目名</th>
                <th>关键词</th>
                <th>当前进度</th>
                <th>创建日期</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td>
           <img style='cursor:pointer' id='img1' onClick="LoadSuns('suns {$vo['id']}', {$vo['id']});"
                             src='__PUBLIC__/images/dedeexplode.gif' width='11' height='11'>
                    </td>
                    <td>{$vo['name']}</td>
                    <td>{$vo['keyword']}</td>
                    <td>
                        <?php


     switch($vo["status"])
        {
            case "-1":
                echo "<span class='red' title=". $vo["statusnote"].">被退回</span>";
                    break;
              case "0":
                   echo "<span >未审核</span>";
                        break;
            case "1":
                echo "<span >通过审核</span>";
                        break;
            default:
                        echo '<a href="'.U('task/taskview',array('id'=>$vo['id'])).'">（当前进度）</a>';
                        break;

             }  ?>
                    </td>
                    <td>{$vo['createtime']}</td>
                    <td>
                        <a href="{:U('yewuContent',array('id'=>$vo['id']))}" title="查看详细信息">查看</a>/
                        <?php
                if($vo["status"]<=0)
                {
                    $url=U('yewudel',array('id'=>$vo['id']));
                        echo ' <a href="'.$url.'">删除</a>/';

                   }
                        if($vo["status"]<1)
                        {
                        $url=U('yewuupdate',array("id"=>$vo['id']));
                        echo ' <a href="'.$url.'">修改</a>';
                        }

                        if($vo['status']==0)
                        {
                        $url=U("shenhe",array("id"=>$vo["id"]));
                      echo '/<a href="'.$url.'">审核</a>';
                        }?>


                    </td>
                </tr>

            </volist>
        </table>
        {$pageshow}
    </fieldset>
</div>


</body>
</html>